package com.zlq.cn.service.un;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zlq.cn.dto.RiddleDto;
import com.zlq.cn.dto.param.RiddlePageParam;
import com.zlq.cn.entity.Riddle;
import com.zlq.cn.mapper.un.RiddleMapper;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zhoucl
 * @since 2021-09-02
 */
@Service
public class RiddleService extends ServiceImpl<RiddleMapper, Riddle> {

    public Page<RiddleDto> list(RiddlePageParam param) {
        return baseMapper.pageList(new Page<>(param.getPageNum(), param.getPageSize()), param);
    }
}
